package sctu.edu.java.year2016.team07.huangsuixin.day20160526.chapter8_3;

/**
 * Created by Huang Suixin on 2016/5/26.
 */
public class Son extends Parent {
    public Son(int num, String str, int sonage, String sonname) {
        super(num, str);
        this.sonage = sonage;
        this.sonname = sonname;
        System.out.println("这是子类的构造方法。");
    }

    public Son(int num, String str) {
        super(num, str);
    }

    int sonage;
    String sonname;
    public void displayson(){
        System.out.println("这是子类的一个方法。");
    }
}
